90313: xfi:fact-typed-dimension-simple-value

Documentation

Owners

Name Affiliation Email Start End
Herm Fischer Mark V Systems fischer@markv.com 01-08-2020 at 12:00:00
Paul Hulst De Nederlandsche Bank P.J.Hulst@dnb.nl 01-08-2020 at 12:00:00
Harald Schmitt ABZ Reporting GmbH harald.schmitt@abz-reporting.com 25-01-2021 at 12:00:00

References

function definition

Test Case Variations


V-01 Height dimension for Mount Kilimanjaro

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and $result instance of xs:integer and $result eq xs:integer(5963)

V-02 Height dimension for pre-eruption volcano (whose hypercube lacks the location dimension because the volcano is not erupted yet, but it has alternate link roles allowing height to be added later after erupting)

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-03 Height dimension for SpacePhenomenon concept Wormhole (whose hypercube for space warping can never have the height dimension)

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-04 Error of concept argument which is not a dimension

Documentation

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-05 Error of non-XBRL element argument as dimension argument

Documentation

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-06 Raises an error for an attribute declaration argument

Documentation

Tests that error is detected when the concept name argument declares an attribute.

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-07 Raises an error for an xbrli namespace'ed argument

Documentation

Tests that error is detected when the concept qname is xbrli:item

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-08 Dimension can be located in either segment or scenario, for this variation appears in the segment, to test that function is looking in either location for value.

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and $result instance of xs:string and $result eq 'dimVal1'

V-09 Dimension can be located in either segment or scenario but for this variation appears in the scenario instead of segment, to test that function is looking in either location for value.

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and $result instance of xs:string and $result eq 'dimVal1'

V-10 No error for a typed domain with complex type simple content

Documentation

Tests that no error is detected when the typed domain item contains complex-typd content with simple content, e.g. the domain member is a simple string (which is atomizable) even though the string has an attribute, because xs:data can atomize the domain value element. This also ensures that a simple type with an id attribute, instead of custom date attribute, would be acceptable for the function.

Inputs

Outputs

  • Result test: count( $result ) eq 1 and $result instance of xs:string and $result eq 'dimValWithAttribute'

V-11 Raises an error for a typed domain with complex type complex content

Documentation

Tests that an error is raised when the typed domain item contains complex-typed content with complex content, e.g. the domain member is a hierarchical structure, which would cause xs:data to raise FOTY0012 attempting to atomize the 2 level element structure.

Inputs

Outputs

  • Error code: xqt-err:FOTY0012

V-12 No error for a typed domain with nil complex type complex content

Documentation

Tests that no error is raised when the typed domain item contains no complex-typed content with complex content, due to being nil.

Inputs

Outputs

  • Result test: empty( $result )

V-13 No error for a typed domain with empty complex type complex content

Documentation

Tests that no error is raised when the typed domain item contains no complex-typed content with complex content, due to being empty.

Inputs

Outputs

  • Result test: empty( $result )

Revisions

Name On Details
Herm Fischer 01-08-2020 at 12:00:00 Typed dimension simple value testcase adapted from 90310 xfi.fact-typed-dimension-simple-value testcase.
Harald Schmitt 25-01-2021 at 12:00:00 Fix outputs expression for test V-12 and V-13.